module.exports = {
  baseUrl: process.env.NODE_ENV === "production" ? "https://www.fullstackjavascript.cn/vue-course/" : "/",
  devServer:{
    proxy:{
      "/api":{
        target:'http://localhost:3000',
        changeOrigin:true,
        pathRewrite:{
          "/api":""
        }
      },
        "images":{
          target:'http://localhost:3000',
          changeOrigin:true,
      },
      "video":{
        target:'http://localhost:3000',
        changeOrigin:true,
    },
    "uploads":{
      target:'http://localhost:3000',
      changeOrigin:true,
  }
    }
  },
  css: {
    loaderOptions: {
      stylus: {
        'resolve url': true,
        'import': [
          './src/theme'
        ]
      }
    }
  },
  pluginOptions: {
    'cube-ui': {
      postCompile: true,
      theme: true
    }
  }
}
